import api from './common/config.js'
let Getajax = api.Getajax
//http://152.136.195.147/api/zhang/banner/get_banner_list
//轮播图
export function banner() {
	return Getajax({
		url: '/api/zhang/banner/get_banner_list',
		type: 'post',
		data: {}
	})

};
//http://152.136.195.147/api/zhang/Recruitinformation/show
//麦芒头条
export function headlines() {
	return Getajax({
		url: '/api/zhang/Recruitinformation/show',
		type: 'post',
		data: {}
	})
}
//http://152.136.195.147/api/Curriculum/show
//热门推荐
export function coursenew() {
	return Getajax({
		url: '/api/Curriculum/show',
		type: 'post',
		data: {}
	})
}
//http://152.136.195.147/api/assists/show
//助攻辅导
export function Assring() {
	return Getajax({
		url: '/api/assists/show',
		type: 'post',
		data: {}
	})
}
//http://152.136.195.147/api/talk/index
//发布话题
export function topic(data) {
	console.log(data)
	return Getajax({
		url: '/api/talk/index',
		type: 'post',
		data: data
	})
}
//http://152.136.195.147/api/question_bank/show

//热门试卷
export function paper() {
	return Getajax({
		url: '/api/question_bank/show',
		type: 'post',
		data: {}
	})
}
//http://152.136.195.147/api/subject_class/index
//模拟考题
export function quizzes() {
	return Getajax({
		url: '/api/subject_class/index',
		type: 'post',
		data: {}
	})
}
// api/zhang/Current_politics/show
//麦芒头条 军事
export function headlines1() {
	return Getajax({
		url: '/api/zhang/Current_politics/show',
		type: 'post',
		data: {}
	})
}
//发布话题
export function talksave(option) {
	return Getajax({
		url: '/api/talk/save',
		type: 'post',
		data: option
	})
}

export function create(data) {
	return Getajax({
		url: '/api/order/create',
		type: 'post',
		data: data
	})
}

export function askShow(data) {
	return Getajax({
		url: '/api/ask/show',
		type: 'post',
		data: data
	})
}
export function recSearch(data) {
	return Getajax({
		url: '/api/zhang/Recruitinformation/search',
		type: 'post',
		data: data
	})
}
export function comShow(data) {
	return Getajax({
		url: '/api/company/show',
		type: 'post',
		data: data
	})
}
export function queShow(data) {
	return Getajax({
		url: '/api/question_bank/show',
		type: 'post',
		data: data
	})
}
export function CurShow(data) {
	return Getajax({
		url: '/api/Curriculum/show',
		type: 'post',
		data: data
	})
}	
export function payother(data) {
	return Getajax({
		url: '/api/order/create',
		type: 'post',
		data: data
	})
}

export function talkread(data) {
	return Getajax({
		url: '/api/talk/read',
		type: 'post',
		data: data
	})
}
export function setZan(data) {
	return Getajax({
		url: '/api/talk/setZan',
		type: 'post',
		data: data
	})
}


export function talkcomment(data) {
	return Getajax({
		url: '/api/talk/comment',
		type: 'post',
		data: data
	})
}

export function question(data) {
	return Getajax({
		url: '/api/company/question',
		type: 'post',
		data: data
	})
}

export function questionList(data) {
	return Getajax({
		url: '/api/company/question_list',
		type: 'post',
		data: data
	})
}

export function offerdata(data){
	return Getajax({
		url: '/api/Offer/index',
		type: 'post',
		data: data
	})
}
export function offerread(data){
	return Getajax({
		url: '/api/offer/read',
		type: 'post',
		data: data
	})
}
